﻿/// <reference path="../MicrosoftAjax.Debug.js" />

//在updatepanel进行请求的时候显示LoadMask，在请求完成以后隐藏LoadMask
var __beginRequest_Show_LoadMask = function (sender, arg) {
    Ext.getBody().mask("正在加载...");
}
var __endRequest_Hide_LoadMask = function (sender, arg) {
    Ext.getBody().unmask();
}

Ext.onReady(function () {
    Ext.tip.QuickTipManager.init();
    try {
        Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(__beginRequest_Show_LoadMask);
        Sys.WebForms.PageRequestManager.getInstance().add_endRequest(__endRequest_Hide_LoadMask);
    } catch (e) { }
});